﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace SmartAnnotation
{

    interface AnnotationType
    {
        int GetID();
        int GetX();
        int GetY();
        int GetWidth();
        int GetHeight();
        string GetTitle();
        string GetText();
        int GetMinWidth();
        int GetMinHeight();
        void SetTitle(string title);
        void SetText(string text);

        void UpdateScroll(int hScrollBar, int vScrollBar);
        void Draw(Graphics g, bool hover);

        void SetEditing(bool value);
        bool IsEditing();

        void Move(int deltaX, int deltaY);
        void Resize(int deltaX, int deltaY);

        bool IsInMiddle(int x, int y);
        bool IsInTopBorder(int x, int y);
        bool IsInBottomBorder(int x, int y);
        bool IsInLeftBorder(int x, int y);
        bool IsInRightBorder(int x, int y);
    }

}